package com.example.mapper;


import com.example.entity.*;

import java.util.List;


public interface UserMapper {
    void register(User register);

    boolean update(User register);

    User getUserById(Integer id);

    User getUserByUserName(String username);

    GreenHouse getGreenHouseBycode(String code);

    void createGreenHouse(GreenHouse greenHouse);

    boolean updateGreenHouse(GreenHouse greenHouse);

    GreenHouse getGreenHouseById(GreenHouse greenHouse);

    List<User> getUserList(User user);

    List<User> getUserListByUserName(String username);
}
